<%@ taglib prefix="s" uri="/struts-tags"%>
<%@taglib prefix="sj" uri="/struts-jquery-tags"%>
<%@taglib prefix="sjg" uri="/struts-jquery-grid-tags"%>

<s:url id="gridUrl" action="modul/menus/jqgrid" />
<s:url id="crudUrl" action="modul/menus/jqcrud" />
<s:url id="urlMenus" action="modul/menus/streamtext" />
<sjg:grid id="gridMenus" caption="Menus" dataType="json"
	href="%{gridUrl}" pager="true" navigator="true"
	navigatorSearchOptions="{sopt:['eq','ne','lt','gt']}"
	navigatorAddOptions="{height:280,width:400,reloadAfterSubmit:true}"
	navigatorEditOptions="{height:280,width:400,reloadAfterSubmit:false}"
	navigatorEdit="true" navigatorView="false" navigatorDelete="true"
	navigatorDeleteOptions="{height:280,reloadAfterSubmit:true}"
	gridModel="list" rowList="10,25,50" rowNum="10" editurl="%{crudUrl}"
	editinline="true" onSelectRowTopics="rowselect"
	onEditInlineSuccessTopics="oneditsuccess" viewrecords="true"
	width="700" shrinkToFit="true" autowidth="true">
	<sjg:gridColumn name="id" id="id" frozen="true" index="id" title="ID"
		width="60" formatter="integer" editable="false" sortable="false"
		search="true" searchoptions="{sopt:['eq','ne','lt','gt']}" />
	<sjg:gridColumn name="name" id="name" index="name" title="menus name"
		width="250" editable="true" edittype="text" sortable="true"
		search="false" />
	<sjg:gridColumn name="toolTip" id="toolTip" index="toolTip"
		title="Tool Tip" width="250" editable="true" edittype="text"
		sortable="true" search="false" />
	<sjg:gridColumn name="parent.name" id="parent.id" index="parent.id"
		title="Parent Name" width="250" editable="false" edittype="text"
		sortable="true" search="false" />
	<sjg:gridColumn name="parent" index="parent" title="parent"
		edittype="select" sortable="false" editable="true" hidden="true"
		editrules="{edithidden:true}" editoptions="{dataUrl:'%{urlMenus}'}" />
</sjg:grid>
